/**
 * @项目：DemoB
 * @创建人：ifuner
 * @创建人邮箱：zhoupengfei@kaiheikeji.com
 * @创建时间：2020-04-01 19:40:08
 * */

import store from "../../store";
import create from "../../utils/create";
// const app = getApp()
create(store, {
  data: {
    demoData:{}
  },

  onLoad: function(target) {
    this.update();
  },
  onShow() {

  },
  onLogin(target) {
    // 在这个事件里面调用初始化业务
  },
  addNum() {
    let num = this.data.demoData.num;
    num++;
    this.update({
      "demoData.num": num
    });
  }
});
